import {request,Get,Post,Delete,Patch} from './request'
// 所有的接口



export const Ajax = {
    testMsg:(data)=>Get("/mapi/msg",data),

    findUser:(data)=>Get("/mapi/users",data),

    addUser:(data)=>Post("/mapi/users",data),

    findPass:(id,data)=>Patch("/mapi/users/"+id,data),
    //更多 商品
    getList:(data)=>Get("/bili/mall-c-search/home/category/listV2?shopId=2233",data),
    //会员购导航
    getNav:(data)=>Post("/bili/mall-c-search/home/config/list",data),
     //会员购商品
    getItem:(data)=>Get("/bili/mall-c-search/home/feed/list?feedType=0",data),
    //商品详情
    getXq:(data)=>Get("/bili/mall-c-search/items/info?",data),


    // 发送短信验证码 
    sendCaptcha:(data)=>Get('/yun/captcha/sent',data),

    // 校验短信验证码 
    verifyCaptcha:(data)=>Get('/yun/captcha/verify',data),

    
    // getGoods:(data)=>Get('/mapi/goods',data),

    // 购物车 
    getCarts:(data)=>Get('/mapi/carts',data),

    getGoods:(data)=>Get("/bili/mall-c-search/items/info?shopId=&itemsVersion=&v=1663655304101",data),

    addToCarts:(data)=>Post('/mapi/carts',data),

    updateCarts:(id,data)=>Patch('/mapi/carts/'+id,data),

    deleteCarts:(id,data)=>Delete('/mapi/carts/'+id,data),

    // 点赞 
    getLikes:(data)=>Get('/mapi/likes',data),

    addToLikes:(data)=>Post('/mapi/likes',data),

    deleteLikes:(id,data)=>Delete('/mapi/likes/'+id,data),

    // 收藏
    getCollects:(data)=>Get('/mapi/collects',data),

    addToCollects:(data)=>Post('/mapi/collects',data),

    deleteCollects:(id,data)=>Delete('/mapi/collects/'+id,data),

    //地址
    getAddress:(data)=>Get('/mapi/address',data),

    addToAddress:(data)=>Post('/mapi/address',data),

    updateAddress:(id,data)=>Patch('/mapi/address/'+id,data),

    deleteAddress:(id,data)=>Delete('/mapi/address/'+id,data),

    getSwj:(data)=>Get("/swj/generatePage/index.json?t0.29613033949169676",data),

    getLxq:(data)=>Get("/lxq/proTag/proList",data),
    
    getWsk:(data)=>Get("/wsk/proTag/proList",data),



}
    
